/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.emergency.resources.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.admin.api.resolver.enums.SysDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * 应急通讯录
 *
 * @author cx
 * @date 2024-01-12 15:39:27
 */
@Data
@TableName("er_address_book")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "应急通讯录")
public class ErAddressBookEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 所属单位
	*/
    @Schema(description="所属单位")
    private Long companyId;

	/**
	* 单位名称
	*/
    @Schema(description="单位名称")
    private String companyName;

	/**
	* 第一负责人
	*/
    @Schema(description="第一负责人")
    private String firstPerson;

	/**
	* 第一负责人电话
	*/
    @Schema(description="第一负责人电话")
    private String firstPersonTelephone;

	/**
	* 第一负责人手机
	*/
    @Schema(description="第一负责人手机")
    private String firstPersonMobilephone;

	/**
	* 第二负责人
	*/
    @Schema(description="第二负责人")
    private String secondPerson;

	/**
	* 第二负责人电话
	*/
    @Schema(description="第二负责人电话")
    private String secondPersonTelephone;

	/**
	* 第二负责人手机
	*/
    @Schema(description="第二负责人手机")
    private String secondPersonMobilephone;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;

	/**
	* 经度
	*/
    @Schema(description="经度")
    private String longitude;

	/**
	* 维度
	*/
    @Schema(description="维度")
    private String latitude;

	/**
	* 高度
	*/
    @Schema(description="高度")
    private String altitude;

	/**
	* 定位
	*/
    @Schema(description="定位")
    private String location;

	/**
	* 附件
	*/
    @Schema(description="附件")
    private String files;

	/**
	* 是否使用
	*/
    @Schema(description="是否使用")
    private String useFlag;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	public String getCompanyIdStr() {
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company,this.getCompanyId());
	}

	public String getUseFlagStr() {
		return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.useFlag);
	}
}